home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi.apps,comp.lang.c++
- Path: in1.uu.net!allegra!alice!ark
- From: ark@research.att.com (Andrew Koenig)
- Subject: Re: SGI's C++ compiler and the boolean type
- Message-ID: <DpnDuH.6GJ@research.att.com>
- Organization: AT&T Research, Murray Hill NJ
- References: <4kefm7$oao@ncar.ucar.edu> <4kg6fv$h7k@nic.ftns.no>
- Date: Wed, 10 Apr 1996 13:08:41 GMT
-
- In article <4kg6fv$h7k@nic.ftns.no> art@mother.idg.no writes:
-
- > And some argue that true should be -1, because then bitwise not works:
-
- > ~(true = -1) == (false = 0)
- > ~(false = 0) == (true = -1)
-
- ... and (3<4)==true fails.
- --
- --Andrew Koenig
- ark@research.att.com
-